﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.Models;
using PBOffice.BLL;

public partial class Message_PersonalMessage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.lbFileCount.Text = new MsgToUserManager().GetCountMsgToUserByToUserId("admin").ToString();
            this.lbNoRead.Text = new MsgToUserManager().GetCountMsgToUserByToUserIdAndIfRead("admin").ToString();
            this.lbSender.Text = new MessageManager().GetCountByFromUserId("admin").ToString();
        }
    }
}